<template>
  <div id="vipSearchTable">
    <el-table :data="vipInfoArr" style="width: 100%">
      <template v-slot:empty v-if="!flag">
        <i class="el-icon-thumb" style="font-size: 24px;margin: 0 10px;"></i>还没有输入查询条件哟~
      </template>
      <template v-slot:empty v-else>
        <i class="el-icon-search" style="font-size: 24px;margin: 0 10px;"></i>没有查找到用户信息呢
      </template>
      <el-table-column label="会员账号" align="center" prop="userMember.number">
      </el-table-column>
      <el-table-column label="会员名称" align="center" prop="name">
      </el-table-column>
      <el-table-column label="联系电话" align="center" width="180px align=center" prop="tel">
      </el-table-column>
      <el-table-column label="账户状态" align="center" prop="userMember.state">
      </el-table-column>
      <el-table-column label="积分" align="center" prop="userMember.score">
      </el-table-column>
      <el-table-column label="尊享折扣" align="center" prop="userMember.discount">
      </el-table-column>
      <el-table-column label="会员等级" align="center" prop="userMember.level">
      </el-table-column>
      <el-table-column label="账户余额" align="center" prop="userMember.money">
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button-group>
            <el-button @click="handle(scope.$index, scope.row)" type="primary" size="mini" icon="el-icon-money"></el-button>
          </el-button-group>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
  export default {
    name: "VIPSearchTable",
    props: ['vipInfoArr','flag'],
    data(){
      return{
      }
    },
    methods:{
      handle(index,row){
        // handleEdit(scope.$index, scope.row)
        this.$emit('handleEdit',index,row)
      }
    }
  }
</script>

<style scoped>

</style>